# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=maui
pkgname=mauikit-documents
pkgver=4.0.0
pkgrel=0
pkgdesc="MauiKit Documents components"
# armhf blocked by mauikit -> qt5-qtdeclarative
arch="all !armhf"
url="https://mauikit.org/"
license="GPL-2.0-or-later"
depends="
	kirigami
	qt6-qtbase-sqlite
	"
makedepends="
	extra-cmake-modules
	karchive-dev
	kcoreaddons-dev
	kfilemetadata-dev
	kguiaddons-dev
	ki18n-dev
	kiconthemes-dev
	kio-dev
	mauikit
	mauikit-dev
	qt6-qtbase-dev
	poppler-qt5-dev
	samurai
	zlib-dev
	"
subpackages="$pkgname-dev $pkgname-lang"
_repo_url="https://invent.kde.org/maui/mauikit-documents.git"
source="https://download.kde.org/stable/maui/mauikit-documents/$pkgver/mauikit-documents-$pkgver.tar.xz"
options="!check" # no tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_POSITION_INDEPENDENT_CODE=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
a677866bf7d31ecd3463e280d269b049fee98fd0da70b5b77f5a934dccc5b92d2df7fbc8a88c61c613c95b783db335733f90cfbe81359a00f49ac892391abb54  mauikit-documents-4.0.0.tar.xz
"
